/*
 * @Author: yudun yudun@idata.ah.cn
 * @Date: 2025-09-28 13:51:21
 * @LastEditors: yudun yudun@idata.ah.cn
 * @LastEditTime: 2025-09-28 13:51:27
 * @FilePath: \trae-code\spzx-admin\src\utils\auth.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

const TokenKey = 'Admin-Token';

export function getToken() {
  // TokenKey
  return window.sessionStorage.getItem(TokenKey);
}

export function setToken(token: string) {
  return window.sessionStorage.setItem(TokenKey, token);
}

export function removeToken() {
  return window.sessionStorage.removeItem(TokenKey);
}
